package com.budwk.app.sqfw.services;

import com.budwk.app.sqfw.dto.TransferServiceRecordDTO;
import com.budwk.app.sqfw.models.Sqfw_servicerecord;
import com.budwk.app.sqfw.vo.PopoFriendWorkOrderVO;
import com.budwk.app.sqfw.vo.SqfwWorkOrderVO;
import com.budwk.app.sqfw.vo.TransferMessageVO;
import com.budwk.starter.common.page.Pagination;
import com.budwk.starter.database.service.BaseService;
import com.budwk.app.sqfw.models.Sqfw_workorder;

import java.util.List;

public interface SqfwWorkorderService extends BaseService<Sqfw_workorder> {

    /**
     * 转发消息
     *
     * @param dto 转发消息dto
     * @return 结果
     */
    TransferMessageVO transferServiceRecord(TransferServiceRecordDTO dto);

    TransferMessageVO transferServiceRecordNew(TransferServiceRecordDTO dto);

    Sqfw_workorder queryBySqfwIdAndUserId(String sqfwId, String userId);

    Sqfw_workorder queryBySqfwIdAndToUserId(String sqfwId, String userId);

    List<Sqfw_workorder> queryBySqfwIdAndFromUserId(String sqfwId, String userId);

    List<PopoFriendWorkOrderVO> getPopoFriendNotCompleteWorkOrderList(List<String> popoUidList, Boolean workOrderListFlag, String wkStatus, String userId);

    List<SqfwWorkOrderVO> getVO(List<Sqfw_workorder> list);

    List<Sqfw_workorder> queryList(Sqfw_servicerecord bean, Sqfw_servicerecord bo, String userId, String fromUserId);

    void updateLatestFlowRemarkWithCompleteFlow(String workerId,String fileType, boolean plus);

    void updateLatestFlowRemarkWithCompleteFlow(Sqfw_workorder workOrder, String latestFlowRemark, String serviceType, boolean plus);
}
